<template>
  <div class="index-box">
    <city-list @selectCity="selectValue"></city-list>
  </div>
</template>

<script>
  import cityList from "../../components/citylist"

  export default {
    data() {
      return {}
    },
    methods: {
      selectValue(city) {
        this.$router.push({path: "/company", query: {"city": city}});
      }
    },
    components: {
      cityList
    }
  }
</script>

<style lang="stylus" scoped>

</style>
